package com.project.bookstore.order.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("多条件插叙订单的条件数据")
public class OrderMultiConditionDTO {
    @ApiModelProperty("订单id")
    private Long id;
    @ApiModelProperty("书籍名称")
    private String bookName;
    @ApiModelProperty("订单号")
    private String orderNumber;
    @ApiModelProperty("订单创建开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDate startDate;
    @ApiModelProperty("订单创建结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDate endDate;
    @ApiModelProperty("发货单号")
    private String expressOrder;
    @ApiModelProperty("订单状态")
    private Integer state;
}
